import request from '@/utils/request'
import type {
    Common,
    PerformanceQueryParams,
    PerformanceResponse,
    BatchPerformanceResponse
} from './type'

// 获取绩效数据
export const getPerformanceData = (type: string, params?: PerformanceQueryParams): Promise<PerformanceResponse> => {
    return request({
        url: `/api/performance/${type}`,
        method: 'GET',
        params
    })
}

// 获取所有绩效数据
export const getAllPerformanceData = (params?: PerformanceQueryParams): Promise<BatchPerformanceResponse> => {
    return request({
        url: '/api/performance/all',
        method: 'GET',
        params
    })
}

// 计算绩效数据
export const calculatePerformanceData = (type: string, params?: PerformanceQueryParams): Promise<PerformanceResponse> => {
    return request({
        url: `/api/performance/${type}/calculate`,
        method: 'POST',
        data: params
    })
}

// 获取所有绩效摘要信息
export const GetAllPerformanceAbstractRequirement = () => request.get<Common<any>>(NewDemands.GetAllPerformanceAbstractRequirement);

// 产品绩效汇总接口
export const GetSummaryPerformanceRequirement = () => request.get<Common<any>>(NewDemands.SummaryPerformanceRequirement);
// 获取计算后的产品绩效
export const GetGetSummaryPerformanceRequirement = () => request.get<Common<any>>(NewDemands.GetSummaryPerformanceRequirement);
// 重新计算产品绩效
export const GetResetSummaryPerformanceRequirement = () => request.get<Common<any>>(NewDemands.GetResetSummaryPerformanceRequirement);
// 产品绩效存储为历史数据
export const GetSaveSummaryPerformanceRequirement = () => request.get<Common<any>>(NewDemands.GetSaveSummaryPerformanceRequirement);

// 分配任务绩效：汇总/获取/重置/存为历史数据
export const summaryAssignmentScore = () => request.get<Common<any>>(NewDemands.SummaryAssignmentScore)
export const getSummaryAssignmentScore = () => request.get<Common<any>>(NewDemands.GetSummaryAssignmentScore)
export const resetSummaryAssignmentScore = () => request.get<Common<any>>(NewDemands.ResetSummaryAssignmentScore)
export const saveSummaryAssignmentScore = () => request.get<Common<any>>(NewDemands.SaveSummaryAssignmentScore)

// 研发任务绩效：汇总/获取/重置/存为历史数据
export const summaryDevelopmentScore = () => request.get<Common<any>>(NewDemands.SummaryDevelopmentScore)
export const getSummaryDevelopmentScore = () => request.get<Common<any>>(NewDemands.GetSummaryDevelopmentScore)
export const resetSummaryDevelopmentScore = () => request.get<Common<any>>(NewDemands.ResetSummaryDevelopmentScore)
export const saveSummaryDevelopmentScore = () => request.get<Common<any>>(NewDemands.SaveSummaryDevelopmentScore)

// 测试任务绩效：汇总/获取/重置/存为历史数据
export const summaryTestingScore = () => request.get<Common<any>>(NewDemands.SummaryTestingScore)
export const getSummaryTestingScore = () => request.get<Common<any>>(NewDemands.GetSummaryTestingScore)
export const resetSummaryTestingScore = () => request.get<Common<any>>(NewDemands.ResetSummaryTestingScore)
export const saveSummaryTestingScore = () => request.get<Common<any>>(NewDemands.SaveSummaryTestingScore)

// WIKI得分绩效：汇总/获取/重置/存为历史数据
export const summaryWikiScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryWikiScore, { params: { date } })
export const getSummaryWikiScore = () => request.get<Common<any>>(NewDemands.GetSummaryWikiScore)
export const resetSummaryWikiScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryWikiScore, { params: { date } })
export const saveSummaryWikiScore = () => request.get<Common<any>>(NewDemands.SaveSummaryWikiScore)

// 维护记录数量绩效：汇总/获取/重置/存为历史数据
export const summaryMaintenanceScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryMaintenanceScore, { params: { date } })
export const getSummaryMaintenanceScore = () => request.get<Common<any>>(NewDemands.GetSummaryMaintenanceScore)
export const resetSummaryMaintenanceScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryMaintenanceScore, { params: { date } })
export const saveSummaryMaintenanceScore = () => request.get<Common<any>>(NewDemands.SaveSummaryMaintenanceScore)

// 上线测试得分绩效：汇总/获取/重置/存为历史数据
export const summaryOnlineTestingScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryOnlineTestingScore, { params: { date } })
export const getSummaryOnlineTestingScore = () => request.get<Common<any>>(NewDemands.GetSummaryOnlineTestingScore)
export const resetSummaryOnlineTestingScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryOnlineTestingScore, { params: { date } })
export const saveSummaryOnlineTestingScore = () => request.get<Common<any>>(NewDemands.SaveSummaryOnlineTestingScore)

// 用例得分绩效：汇总/获取/重置/存为历史数据
export const summaryUseCaseScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryUseCaseScore, { params: { date } })
export const getSummaryUseCaseScore = () => request.get<Common<any>>(NewDemands.GetSummaryUseCaseScore)
export const resetSummaryUseCaseScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryUseCaseScore, { params: { date } })
export const saveSummaryUseCaseScore = () => request.get<Common<any>>(NewDemands.SaveSummaryUseCaseScore)

// 沟通协调得分绩效：汇总/获取/重置/存为历史数据
export const summaryCommunicationScore = (dailyDate?: string) => request.post<Common<any>>(NewDemands.SummaryCommunicationScore, { dailyDate })
export const getSummaryCommunicationScore = () => request.get<Common<any>>(NewDemands.GetSummaryCommunicationScore)
export const resetSummaryCommunicationScore = (dailyDate?: string) => request.post<Common<any>>(NewDemands.ResetSummaryCommunicationScore, { dailyDate })
export const saveSummaryCommunicationScore = () => request.get<Common<any>>(NewDemands.SaveSummaryCommunicationScore)

// 差的日报绩效：汇总/获取/重置/存为历史数据
export const summaryItemPoorDailyReports = (dailyDate?: string) => request.post<Common<any>>(NewDemands.SummaryItemPoorDailyReports, { dailyDate })
export const getSummaryItemPoorDailyReports = () => request.get<Common<any>>(NewDemands.GetSummaryItemPoorDailyReports)
export const resetSummaryItemPoorDailyReports = (dailyDate?: string) => request.post<Common<any>>(NewDemands.ResetSummaryItemPoorDailyReports, { dailyDate })
export const saveSummaryItemPoorDailyReports = () => request.get<Common<any>>(NewDemands.SaveSummaryItemPoorDailyReports)

// 日报重复率绩效：汇总/获取/重置/存为历史数据
export const summaryItemDailyReportRepetitionRate = (dailyDate?: string) => request.post<Common<any>>(NewDemands.SummaryItemDailyReportRepetitionRate, { dailyDate })
export const getSummaryItemDailyReportRepetitionRate = () => request.get<Common<any>>(NewDemands.GetSummaryItemDailyReportRepetitionRate)
export const resetSummaryItemDailyReportRepetitionRate = (dailyDate?: string) => request.post<Common<any>>(NewDemands.ResetSummaryItemDailyReportRepetitionRate, { dailyDate })
export const saveSummaryItemDailyReportRepetitionRate = () => request.get<Common<any>>(NewDemands.SaveSummaryItemDailyReportRepetitionRate)

// 上线运维得分绩效：汇总/获取/重置/存为历史数据
export const summaryOnlineOperationScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryOnlineOperationScore, { params: { date } })
export const getSummaryOnlineOperationScore = () => request.get<Common<any>>(NewDemands.GetSummaryOnlineOperationScore)
export const resetOnlineOperationScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetOnlineOperationScore, { params: { date } })
export const saveSummaryOnlineOperationScore = () => request.get<Common<any>>(NewDemands.SaveSummaryOnlineOperationScore)

// 需求得分绩效：汇总/获取/重置/存为历史数据（与分配任务绩效一致，无需日期）
export const summaryRequirementScore = () => request.get<Common<any>>(NewDemands.SummaryRequirementScore)
export const getSummaryRequirementScore = () => request.get<Common<any>>(NewDemands.GetSummaryRequirementScore)
export const resetSummaryRequirementScore = () => request.get<Common<any>>(NewDemands.ResetSummaryRequirementScore)
export const saveSummaryRequirementScore = () => request.get<Common<any>>(NewDemands.SaveSummaryRequirementScore)

// 工作量得分绩效：汇总/获取/重置/存为历史数据
export const summaryWorkloadScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryWorkloadScore, { params: { date } })
export const getSummaryWorkloadScore = () => request.get<Common<any>>(NewDemands.GetSummaryWorkloadScore)
export const resetSummaryWorkloadScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryWorkloadScore, { params: { date } })
export const saveSummaryWorkloadScore = () => request.get<Common<any>>(NewDemands.SaveSummaryWorkloadScore)

// 汇报材料得分绩效：汇总/获取/重置/存为历史数据
export const summaryReportMaterialScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryReportMaterialScore, { params: { date } })
export const getSummaryReportMaterialScore = () => request.get<Common<any>>(NewDemands.GetSummaryReportMaterialScore)
export const resetSummaryReportMaterialScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryReportMaterialScore, { params: { date } })
export const saveSummaryReportMaterialScore = () => request.get<Common<any>>(NewDemands.SaveSummaryReportMaterialScore)

// 出差得分绩效：汇总/获取/重置/存为历史数据
export const summaryBusinessTripScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryBusinessTripScore, { params: { date } })
export const getSummaryBusinessTripScore = () => request.get<Common<any>>(NewDemands.GetSummaryBusinessTripScore)
export const resetSummaryBusinessTripScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryBusinessTripScore, { params: { date } })
export const saveSummaryBusinessTripScore = () => request.get<Common<any>>(NewDemands.SaveSummaryBusinessTripScore)

// 净加班绩效：汇总/获取/重置/存为历史数据（与测试任务类似，无需日期）
export const summaryNetOvertimeHoursScore = () => request.get<Common<any>>(NewDemands.SummaryNetOvertimeHoursScore)
export const getSummaryNetOvertimeHoursScore = () => request.get<Common<any>>(NewDemands.GetSummaryNetOvertimeHoursScore)
export const resetSummaryNetOvertimeHoursScore = () => request.get<Common<any>>(NewDemands.ResetSummaryNetOvertimeHoursScore)
export const saveSummaryNetOvertimeHoursScore = () => request.get<Common<any>>(NewDemands.SaveSummaryNetOvertimeHoursScore)

// 分配延期绩效：汇总/获取/重置/存为历史数据（与分配任务绩效一致，无需日期）
export const summaryAssignmentDelayTasksScore = () => request.get<Common<any>>(NewDemands.SummaryAssignmentDelayTasksScore)
export const getSummaryAssignmentDelayTasksScore = () => request.get<Common<any>>(NewDemands.GetSummaryAssignmentDelayTasksScore)
export const resetSummaryAssignmentDelayTasksScore = () => request.get<Common<any>>(NewDemands.ResetSummaryAssignmentDelayTasksScore)
export const saveSummaryAssignmentDelayTasksScore = () => request.get<Common<any>>(NewDemands.SaveSummaryAssignmentDelayTasksScore)

// 研发延期任务绩效：汇总/获取/重置/存为历史数据（与分配延期绩效一致，无需日期）
export const summaryDevelopmentDelayTasksScore = () => request.get<Common<any>>(NewDemands.SummaryDevelopmentDelayTasksScore)
export const getSummaryDevelopmentDelayTasksScore = () => request.get<Common<any>>(NewDemands.GetSummaryDevelopmentDelayTasksScore)
export const resetSummaryDevelopmentDelayTasksScore = () => request.get<Common<any>>(NewDemands.ResetSummaryDevelopmentDelayTasksScore)
export const saveSummaryDevelopmentDelayTasksScore = () => request.get<Common<any>>(NewDemands.SaveSummaryDevelopmentDelayTasksScore)

// 上线回退次数绩效：汇总/获取/重置/存为历史数据（需选择月份）
export const summaryOnlineRollbackCountScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryOnlineRollbackCountScore, { params: { date } })
export const getSummaryOnlineRollbackCountScore = () => request.get<Common<any>>(NewDemands.GetSummaryOnlineRollbackCountScore)
export const resetSummaryOnlineRollbackCountScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryOnlineRollbackCountScore, { params: { date } })
export const saveSummaryOnlineRollbackCountScore = () => request.get<Common<any>>(NewDemands.SaveSummaryOnlineRollbackCountScore)

// 未巡检数量绩效：汇总/获取/重置/存为历史数据（需选择月份）
export const summaryItemUninspectedCountScore = (date?: string) => request.get<Common<any>>(NewDemands.SummaryItemUninspectedCountScore, { params: { date } })
export const getSummaryItemUninspectedCountScore = () => request.get<Common<any>>(NewDemands.GetSummaryItemUninspectedCountScore)
export const resetSummaryItemUninspectedCountScore = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryItemUninspectedCountScore, { params: { date } })
export const saveSummaryItemUninspectedCountScore = () => request.get<Common<any>>(NewDemands.SaveSummaryItemUninspectedCountScore)

// 上线延期数量绩效：汇总/获取/重置/存为历史数据（需选择月份）
export const summaryItemOnlineDelayCount = (date?: string) => request.get<Common<any>>(NewDemands.SummaryItemOnlineDelayCount, { params: { date } })
export const getSummaryItemOnlineDelayCount = () => request.get<Common<any>>(NewDemands.GetSummaryItemOnlineDelayCount)
export const resetSummaryItemOnlineDelayCount = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryItemOnlineDelayCount, { params: { date } })
export const saveSummaryItemOnlineDelayCount = () => request.get<Common<any>>(NewDemands.SaveSummaryItemOnlineDelayCount)

// 上线计划达成绩效：汇总/获取/重置/存为历史数据（需选择月份）
export const summaryItemOnlinePlanCompletionRate = (date?: string) =>
  request.get<Common<any>>(NewDemands.SummaryItemOnlinePlanCompletionRate, { params: { date } })
export const getSummaryItemOnlinePlanCompletionRate = () =>
  request.get<Common<any>>(NewDemands.GetSummaryItemOnlinePlanCompletionRate)
export const resetSummaryItemOnlinePlanCompletionRate = (date?: string) =>
  request.get<Common<any>>(NewDemands.ResetSummaryItemOnlinePlanCompletionRate, { params: { date } })
export const saveSummaryItemOnlinePlanCompletionRate = () =>
  request.get<Common<any>>(NewDemands.SaveSummaryItemOnlinePlanCompletionRate)

// 上线运维及测试任务达成率绩效：汇总/获取/重置/存为历史数据（与上线计划达成绩效一致，无需日期）
export const summaryItemOnlineOperationTasks = (date?: string) => request.get<Common<any>>(NewDemands.SummaryItemOnlineOperationTasks, { params: { date } })
export const getSummaryItemOnlineOperationTasks = () => request.get<Common<any>>(NewDemands.GetSummaryItemOnlineOperationTasks)
export const resetSummaryItemOnlineOperationTasks = (date?: string) => request.get<Common<any>>(NewDemands.ResetSummaryItemOnlineOperationTasks, { params: { date } })
export const saveSummaryItemOnlineOperationTasks = () => request.get<Common<any>>(NewDemands.SaveSummaryItemOnlineOperationTasks)

enum NewDemands {
    GetAllPerformanceAbstractRequirement = '/item/getAllPerformanceAbstractRequirement',//获取所有绩效摘要信息
    SummaryPerformanceRequirement = '/item/summaryPerformanceRequirement',//计算产品绩效
    GetSummaryPerformanceRequirement = '/item/getSummaryPerformanceRequirement',//获取计算后的产品绩效
    GetResetSummaryPerformanceRequirement = '/item/resetSummaryPerformanceRequirement',//重新计算产品绩效
    GetSaveSummaryPerformanceRequirement = '/item/saveSummaryPerformanceRequirement'//产品绩效存储为历史数据
    ,SummaryAssignmentScore = '/item/summaryAssignmentScore'//汇总分配任务绩效
    ,GetSummaryAssignmentScore = '/item/getSummaryAssignmentScore'//获取汇总后分配任务绩效
    ,ResetSummaryAssignmentScore = '/item/resetSummaryAssignmentScore'//重新汇总分配任务绩效
    ,SaveSummaryAssignmentScore = '/item/saveSummaryAssignmentScore'//分配任务绩效存为历史数据
    ,SummaryDevelopmentScore = '/item/summaryDevelopmentScore'//汇总研发任务绩效
    ,GetSummaryDevelopmentScore = '/item/getSummaryDevelopmentScore'//获取汇总后研发任务绩效
    ,ResetSummaryDevelopmentScore = '/item/resetSummaryDevelopmentScore'//重新汇总研发任务绩效
    ,SaveSummaryDevelopmentScore = '/item/saveSummaryDevelopmentScore'//研发任务绩效存为历史数据
    ,SummaryTestingScore = '/item/summaryTestingScore'//汇总测试任务绩效
    ,GetSummaryTestingScore = '/item/getSummaryTestingScore'//获取汇总后测试任务绩效
    ,ResetSummaryTestingScore = '/item/resetSummaryTestingScore'//重新汇总测试任务绩效
    ,SaveSummaryTestingScore = '/item/saveSummaryTestingScore'//测试任务绩效存为历史数据
    ,SummaryWikiScore = '/item/summaryWikiScore'//汇总WIKI得分绩效
    ,GetSummaryWikiScore = '/item/getSummaryWikiScore'//获取汇总后WIKI得分绩效
    ,ResetSummaryWikiScore = '/item/resetSummaryWikiScore'//重新汇总WIKI得分绩效
    ,SaveSummaryWikiScore = '/item/saveSummaryWikiScore'//WIKI得分绩效存为历史数据
    ,SummaryMaintenanceScore = '/item/summaryMaintenanceScore'//汇总维护记录数量绩效
    ,GetSummaryMaintenanceScore = '/item/getSummaryMaintenanceScore'//获取汇总后维护记录数量绩效
    ,ResetSummaryMaintenanceScore = '/item/resetSummaryMaintenanceScore'//重新汇总维护记录数量绩效
    ,SaveSummaryMaintenanceScore = '/item/saveSummaryMaintenanceScore'//维护记录数量绩效存为历史数据
    ,SummaryOnlineTestingScore = '/item/summaryOnlineTestingScore'//汇总上线测试得分绩效
    ,GetSummaryOnlineTestingScore = '/item/getSummaryOnlineTestingScore'//获取汇总后上线测试得分绩效
    ,ResetSummaryOnlineTestingScore = '/item/resetSummaryOnlineTestingScore'//重新汇总上线测试得分绩效
    ,SaveSummaryOnlineTestingScore = '/item/saveSummaryOnlineTestingScore'//上线测试得分绩效存为历史数据
    ,SummaryUseCaseScore = '/item/summaryUseCaseScore'//汇总用例得分绩效
    ,GetSummaryUseCaseScore = '/item/getSummaryUseCaseScore'//获取汇总后用例得分绩效
    ,ResetSummaryUseCaseScore = '/item/resetSummaryUseCaseScore'//重新汇总用例得分绩效
    ,SaveSummaryUseCaseScore = '/item/saveSummaryUseCaseScore'//用例得分绩效存为历史数据
    ,SummaryCommunicationScore = '/item/summaryCommunicationScore'//汇总沟通协调得分绩效
    ,GetSummaryCommunicationScore = '/item/getSummaryCommunicationScore'//获取汇总后沟通协调得分绩效
    ,ResetSummaryCommunicationScore = '/item/resetSummaryCommunicationScore'//重新汇总沟通协调得分绩效
    ,SaveSummaryCommunicationScore = '/item/saveSummaryCommunicationScore'//沟通协调得分绩效存为历史数据
    ,SummaryItemPoorDailyReports = '/item/summaryItemPoorDailyReports'//汇总差的日报绩效
    ,GetSummaryItemPoorDailyReports = '/item/getSummaryItemPoorDailyReports'//获取汇总后差的日报绩效
    ,ResetSummaryItemPoorDailyReports = '/item/resetSummaryItemPoorDailyReports'//重新汇总差的日报绩效
    ,SaveSummaryItemPoorDailyReports = '/item/saveSummaryItemPoorDailyReports'//差的日报绩效存为历史数据
    ,SummaryItemDailyReportRepetitionRate = '/item/summaryItemDailyReportRepetitionRate'//汇总日报重复率绩效
    ,GetSummaryItemDailyReportRepetitionRate = '/item/getSummaryItemDailyReportRepetitionRate'//获取汇总后日报重复率绩效
    ,ResetSummaryItemDailyReportRepetitionRate = '/item/resetSummaryItemDailyReportRepetitionRate'//重新汇总日报重复率绩效
    ,SaveSummaryItemDailyReportRepetitionRate = '/item/saveSummaryItemDailyReportRepetitionRate'//日报重复率绩效存为历史数据
    ,SummaryOnlineOperationScore = '/item/summaryOnlineOperationScore'//汇总上线运维得分绩效
    ,GetSummaryOnlineOperationScore = '/item/getSummaryOnlineOperationScore'//获取汇总后上线运维得分绩效
    ,ResetOnlineOperationScore = '/item/resetOnlineOperationScore'//重新汇总上线运维得分绩效
    ,SaveSummaryOnlineOperationScore = '/item/saveSummaryOnlineOperationScore'//上线运维得分绩效存为历史数据
    ,SummaryRequirementScore = '/item/summaryRequirementScore'//汇总需求得分绩效
    ,GetSummaryRequirementScore = '/item/getSummaryRequirementScore'//获取汇总后需求得分绩效
    ,ResetSummaryRequirementScore = '/item/resetSummaryRequirementScore'//重新汇总需求得分绩效
    ,SaveSummaryRequirementScore = '/item/saveSummaryRequirementScore'//需求得分绩效存为历史数据
    ,SummaryWorkloadScore = '/item/summaryWorkloadScore'//汇总工作量得分绩效
    ,GetSummaryWorkloadScore = '/item/getSummaryWorkloadScore'//获取汇总后工作量得分绩效
    ,ResetSummaryWorkloadScore = '/item/resetSummaryWorkloadScore'//重新汇总工作量得分绩效
    ,SaveSummaryWorkloadScore = '/item/saveSummaryWorkloadScore'//工作量得分绩效存为历史数据
    ,SummaryReportMaterialScore = '/item/summaryReportMaterialScore'//汇总汇报材料得分绩效
    ,GetSummaryReportMaterialScore = '/item/getSummaryReportMaterialScore'//获取汇总后汇报材料得分绩效
    ,ResetSummaryReportMaterialScore = '/item/resetSummaryReportMaterialScore'//重新汇总汇报材料得分绩效
    ,SaveSummaryReportMaterialScore = '/item/saveSummaryReportMaterialScore'//汇报材料得分绩效存为历史数据
    ,SummaryBusinessTripScore = '/item/summaryBusinessTripScore'//汇总出差得分绩效
    ,GetSummaryBusinessTripScore = '/item/getSummaryBusinessTripScore'//获取汇总后出差得分绩效
    ,ResetSummaryBusinessTripScore = '/item/resetSummaryBusinessTripScore'//重新汇总出差得分绩效
    ,SaveSummaryBusinessTripScore = '/item/saveSummaryBusinessTripScore'//出差得分绩效存为历史数据
    ,SummaryNetOvertimeHoursScore = '/item/summaryNetOvertimeHoursScore'//汇总结加班绩效
    ,GetSummaryNetOvertimeHoursScore = '/item/getSummaryNetOvertimeHoursScore'//获取汇总结加班绩效
    ,ResetSummaryNetOvertimeHoursScore = '/item/resetSummaryNetOvertimeHoursScore'//重新汇总结加班绩效
    ,SaveSummaryNetOvertimeHoursScore = '/item/saveSummaryNetOvertimeHoursScore'//净加班绩效存为历史数据
    ,SummaryAssignmentDelayTasksScore = '/item/summaryAssignmentDelayTasksScore'//汇总分配延期绩效
    ,GetSummaryAssignmentDelayTasksScore = '/item/getSummaryAssignmentDelayTasksScore'//获取汇总后分配延期绩效
    ,ResetSummaryAssignmentDelayTasksScore = '/item/resetSummaryAssignmentDelayTasksScore'//重新汇总分配延期绩效
    ,SaveSummaryAssignmentDelayTasksScore = '/item/saveSummaryAssignmentDelayTasksScore'//分配延期绩效存为历史数据
    ,SummaryDevelopmentDelayTasksScore = '/item/summaryDevelopmentDelayTasksScore'//汇总研发延期任务绩效
    ,GetSummaryDevelopmentDelayTasksScore = '/item/getSummaryDevelopmentDelayTasksScore'//获取汇总后研发延期任务绩效
    ,ResetSummaryDevelopmentDelayTasksScore = '/item/resetSummaryDevelopmentDelayTasksScore'//重新汇总研发延期任务绩效
    ,SaveSummaryDevelopmentDelayTasksScore = '/item/saveSummaryDevelopmentDelayTasksScore'//研发延期任务绩效存为历史数据
    ,SummaryOnlineRollbackCountScore = '/item/summaryOnlineRollbackCountScore'//汇总上线回退次数绩效
    ,GetSummaryOnlineRollbackCountScore = '/item/getSummaryOnlineRollbackCountScore'//获取汇总后上线回退次数绩效
    ,ResetSummaryOnlineRollbackCountScore = '/item/resetSummaryOnlineRollbackCountScore'//重新汇总上线回退次数绩效
    ,SaveSummaryOnlineRollbackCountScore = '/item/saveSummaryOnlineRollbackCountScore'//上线回退次数绩效存为历史数据
    ,SummaryItemUninspectedCountScore = '/item/summaryItemUninspectedCountScore'//汇总未巡检数量绩效
    ,GetSummaryItemUninspectedCountScore = '/item/getSummaryItemUninspectedCountScore'//获取汇总后未巡检数量绩效
    ,ResetSummaryItemUninspectedCountScore = '/item/resetSummaryItemUninspectedCountScore'//重新汇总未巡检数量绩效
    ,SaveSummaryItemUninspectedCountScore = '/item/saveSummaryItemUninspectedCountScore'//未巡检数量绩效存为历史数据
    ,SummaryItemOnlineDelayCount = '/item/summaryItemOnlineDelayCount'//汇总上线延期数量绩效
    ,GetSummaryItemOnlineDelayCount = '/item/getSummaryItemOnlineDelayCount'//获取汇总后上线延期数量绩效
    ,ResetSummaryItemOnlineDelayCount = '/item/resetSummaryItemOnlineDelayCount'//重新汇总上线延期数量绩效
    ,SaveSummaryItemOnlineDelayCount = '/item/saveSummaryItemOnlineDelayCount'//上线延期数量绩效存为历史数据
    ,SummaryItemOnlinePlanCompletionRate = '/item/summaryItemOnlinePlanCompletionRate'//汇总上线计划达成绩效
    ,GetSummaryItemOnlinePlanCompletionRate = '/item/getSummaryItemOnlinePlanCompletionRate'//获取汇总后上线计划达成绩效
    ,ResetSummaryItemOnlinePlanCompletionRate = '/item/resetSummaryItemOnlinePlanCompletionRate'//重新汇总上线计划达成绩效
    ,SaveSummaryItemOnlinePlanCompletionRate = '/item/saveSummaryItemOnlinePlanCompletionRate'//上线计划达成绩效存为历史数据
    ,SummaryItemOnlineOperationTasks = '/item/summaryItemOnlineOperationTasks'//汇总上线运维及测试任务达成率绩效
    ,GetSummaryItemOnlineOperationTasks = '/item/getSummaryItemOnlineOperationTasks'//获取汇总后上线运维及测试任务达成率绩效
    ,ResetSummaryItemOnlineOperationTasks = '/item/resetSummaryItemOnlineOperationTasks'//重新汇总上线运维及测试任务达成率绩效
    ,SaveSummaryItemOnlineOperationTasks = '/item/saveSummaryItemOnlineOperationTasks'//上线运维及测试任务达成率绩效存为历史数据
}
// 绩效类型枚举
export const PERFORMANCE_TYPES = {
    PRODUCT: 'product',
    ASSIGNED_TASK: 'assignedTask',
    DEVELOPMENT_TASK: 'developmentTask',
    TEST_TASK: 'testTask',
    WIKI_SCORE: 'wikiScore',
    MAINTENANCE_RECORD: 'maintenanceRecord',
    ONLINE_TEST_SCORE: 'onlineTestScore',
    TEST_CASE_SCORE: 'testCaseScore',
    ONLINE_OPERATION: 'onlineOperation',
    COMMUNICATION: 'communication',
    REQUIREMENT_SCORE: 'requirementScore',
    WORKLOAD_SCORE: 'workloadScore',
    REPORT_MATERIAL: 'reportMaterial',
    ONLINE_TASK_COMPLETION: 'onlineTaskCompletion',
    POOR_DAILY_REPORT: 'poorDailyReport',
    BUSINESS_TRIP: 'businessTrip',
    OVERTIME: 'overtime',
    FAULT_DEDUCTION: 'faultDeduction',
    ASSIGNED_DELAY: 'assignedDelay',
    DEVELOPMENT_DELAY: 'developmentDelay',
    ONLINE_ROLLBACK: 'onlineRollback',
    INSPECTION_MISS: 'inspectionMiss',
    ONLINE_DELAY: 'onlineDelay',
    ONLINE_PLAN_COMPLETION: 'onlinePlanCompletion',
    DAILY_REPORT_REPETITION: 'dailyReportRepetition'
} as const
